#import "XMLLeafNode.h"

@implementation XMLLeafNode

@synthesize value;

- (id)initWithParent:(XMLNode *)p value:(NSString *)v
{
    if (self = [super initWithParent:p])
    {
        value = [[NSMutableString alloc] initWithCapacity:0];
        [value setString:v];
    }
    return self;
}

- (NSString *)generateXML
{
    return value;
}

- (void)dealloc
{
    [value release];
    [super dealloc];
}

@end
